PtInRgn
To determine whether a pixel is within a region, use thePtInRgn
function.
FUNCTION PtInRgn (pt:†Point; rgn:†RgnHandle):†Boolean;
pt
- The point whose pixel is to be checked.
rgn
- A handle to the region to test.
DESCRIPTION
ThePtInRgn
function checks whether the pixel below and to the right of the point you specify in thept
parameter is within the region whose handle you pass in thergn
parameter. ThePtInRgn
function returnsTRUE
if so orFALSE
if not.